package com.chs.recoginition.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chs.recoginition.pojo.GiveUp;
import com.chs.recoginition.vo.PageRespVo;
import com.chs.recoginition.vo.reqvo.GiveUpPageVo;
import com.chs.recoginition.vo.respVo.GiveUpRespVo;
import com.chs.recoginition.vo.respVo.UserRespVo;

/**
 * <p>
 *  服务类
 * </p>
 * @author CHS
 * @since 2023-04-10
 */
public interface IGiveUpService extends IService<GiveUp> {

    /**
     * 分页查询
     * @param reqVo
     * @return
     */
    PageRespVo<GiveUpRespVo> findPage(GiveUpPageVo reqVo);

    /**
     * 新增
     * @param vo
     * @param user
     */
    void save(GiveUp vo, UserRespVo user);

    /**
     * 查询该帖子当前用户是否已经点赞
     * @param invitationId
     * @param user
     * @return
     */
    Boolean getBoolean(Integer invitationId, UserRespVo user);

    /**
     * 点赞
     * @param invitationId
     * @param user
     */
    Integer getParse(Integer invitationId, UserRespVo user);

    /**
     * 查询当前分享的点赞数量
     * @param invitationId
     * @return
     */
    Integer getSize(Integer invitationId);

    /**
     * 删除
     * @param idList
     */
    void remove(String idList);
}
